package com.four.reimbursemanage.service;



import com.four.reimbursemanage.common.bean.Page;
import com.four.reimbursemanage.entity.Dailyapply;

import java.util.Date;
import java.util.List;

/**
 * 日常报销申请Service接口
 * 
 * @author lwy
 * @date 2024-09-18
 */
public interface IDailyapplyService 
{
    /**
     * 查询日常报销申请
     * 
     * @param id 日常报销申请主键
     * @return 日常报销申请
     */
    public Dailyapply selectDailyapplyById(Integer id);

    /*根据number查看*/
    public List<Dailyapply> selectByNum(String number);

    /**
     * 查询日常报销申请列表
     * 
     *
     * @return 日常报销申请集合
     */
    public Page<Dailyapply> getOnrePage(int pageNum, int pageSize,
                                        Date writedate, String department,
                                        String reason, String money,
                                        String rill, Integer state);
   /* public List<Dailyapply> selectDailyapplyList(Dailyapply dailyapply);*/


    /*查询本人申请*/
   public Page<Dailyapply> getOnrePageUser(int pageNum, int pageSize,
                                       Date writedate, String department,
                                       String reason, String money,
                                       String rill, Integer state,String number);
    /**
     * 新增日常报销申请
     * 
     * @param dailyapply 日常报销申请
     * @return 结果
     */
    public boolean insertDailyapply(Dailyapply dailyapply);

    /**
     * 修改日常报销申请
     * 
     * @param dailyapply 日常报销申请
     * @return 结果
     */
    public boolean updateDailyapply(Dailyapply dailyapply);

    public boolean updateC(Dailyapply dailyapply);
    /**
     * 批量删除日常报销申请
     * 
     * @param ids 需要删除的日常报销申请主键集合
     * @return 结果
     */
    public int deleteDailyapplyByIds(Integer[] ids);

    /**
     * 删除日常报销申请信息
     * 
     * @param id 日常报销申请主键
     * @return 结果
     */
    public int deleteDailyapplyById(Integer id);
}
